package com.fy56.platform.logistics.restful.api.utils.redis;

/**
 * RedisKey生成工厂类
 */
public class RedisKeyFactoryUtils {
    /**
     * RedisKey_生成器
     */
    public enum KeyGenerator {
        /**
         * 微信_accessToken
         */
        WECHAT_ACCESSTOKEN("wechat_accesstoken_"),
        /**
         * 微信JS-SDK-签名凭证_jsapiTicket
         */
        WECHAT_JSAPITICKET("wechat_jsapitick_");

        private String key;
        public String getKey(String appId){ return this.key+appId;}
        public void setKey(String key) { this.key = key; }

        private KeyGenerator(String key) {
            this.key = key;
        }
    }
}